-- GENERATED SPELL FOR [Coilskar Cobra] --


function spell0_19784(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(38030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19784', 12500, 1)
end

function Sorts_19784(pUnit, Event)
local choix_sorts_19784 = math.random(0, 0)
if choix_sorts_19784 == 0 then
pUnit:RegisterEvent('spell0_19784', 1, 1)
end
end

function mob19784_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19784', math.random(1500, 3000), 1)
end

function mob19784_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19784_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19784_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19784, 1, 'mob19784_Action')
RegisterUnitEvent(19784, 2, 'mob19784_Leave')
RegisterUnitEvent(19784, 3, 'mob19784_Kill')
RegisterUnitEvent(19784, 4, 'mob19784_Die')
